package org.jeecg.modules.engineering.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.engineering.entity.EquipCollectItemDetail;
import org.jeecg.modules.engineering.entity.EquipEventSortDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 每个小区的事件分类
 * @Author: jeecg-boot
 * @Date:   2019-09-11
 * @Version: V1.0
 */
@Repository
public interface EquipEventSortDetailMapper extends BaseMapper<EquipEventSortDetail> {

    @SqlParser(filter = true)
    EquipEventSortDetail findById(@Param("id") String id);

    List<EquipEventSortDetail> queryListByProjectId(@Param("projectId") String projectId);

    long getCount(@Param("projectId")String projectId, @Param("eventId")String eventId, String id);
}
